<?php


require_once '../../../serverResources/includes/db/ConnDBUser.php';
require_once '../../../serverResources/includes/classes/BrainStorm.php';
require_once '../../../serverResources/includes/classes/EditedBrainStorm.php';
include_once '../others/refreshSessionTime.php';

if(isset($_POST['userID']) && isset($_POST['projectID'])){


	$bs=new BrainStorm('', '', '');

	$array=$bs->preparedArrayForAdmin($_POST['userID'], $_POST['projectID']);
	unset($bs);

	echo json_encode($array);

}else{
	echo 0; //falha no post
}
